@import "./common/mixin.scss";
@import "./common/utils.scss";
@import "./common/vars.scss";

@include module(dialog) {
  z-index: 2000;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  overflow: auto;
  padding-bottom: 10vh;
  @include element(content) {
    min-width: 300px;
    border-radius: 4px;
    display: block;
    width: 60%;
    background: white;
    margin: 10vh auto 0 auto;
  }
  @include element(header) {
    padding: 20px 20px 10px 20px;
    &_title {
      &,
      & > span {
        font-size: 18px;
        color: #333;
        line-height: 1;
        box-sizing: border-box;
        display: inline-block;
      }
    }
    &_close {
      font-size: 18px;
      line-height: 1;
      color: #999;
      float: right;
      cursor: pointer;
    }
  }
  @include element(body) {
    padding: 20px;
  }
  @include element(footer) {
    padding: 10px 20px 20px 20px;
    &:after {
      content: "";
      display: block;
      clear: both;
    }
  }
}
